//
//  XVVIndexSelectUse.h
//  ppkc2016
//
//  Created by 拼凑的断音 on 16/4/16.
//  Copyright © 2016年 拼凑的断音. All rights reserved.
//

#import "DKView.h"
#import "XTCShowIndex.h"
#import "XXTool.h"

typedef enum : NSUInteger {
    XVVIndexSelectShowCategory=0,
    XVVIndexSelectShowSearchResult,
} XVVIndexSelectUseType;

@class XVVIndexSelectUse;

@protocol XVVIndexSelectUseDelegate <NSObject>

@optional

-(void)indexSelectUse:(XVVIndexSelectUse*)indexView dataList:(NSArray *)list clickTableviewIndexPathRow:(NSInteger)row;

@end

@interface XVVIndexSelectUse : DKView

@property (nonatomic,strong) DKButton* backButton;

@property (nonatomic,strong) NSArray *indexDataList;

@property (nonatomic,assign) XVVIndexSelectUseType nowType;

@property (weak) id delegate;

+(void)newIndexSelectUseWithSourceVC:(UIViewController*)sourceVC indexDataList:(NSArray *)indexDataList useType:(XVVIndexSelectUseType)type completion:(void(^)())block;

@end
